	<h1>Inregistrare</h1>
	
	<?php
	if(isset($error)) {
		echo '<span class="error">'.$error.'</span>';
	} 
	?>
	<?
	
	echo form_open('main/register_validation');
	
	echo validation_errors();
	
	echo "<label for='tip'> Tip: </label>";
	echo  form_dropdown('type', array('0'=>'persoana fizica','1'=>'persoana juridica'), '0');
	echo "<br />"; 
	
	echo "<label for='email'> Email: </label>";
	echo form_input('email', $this->input->post('email'));
	echo "<br />";
	
	echo "<label for='pass'> Parola: </label>";
	echo form_password('pass');
	echo "<br />";
	
	echo "<label for='cpass'> Confirma parola: </label>";
	echo form_password('cpass');
	echo "<br />";
	
	echo "<label>&nbsp;</label>";
	echo form_submit('register_submit','Register');
	
	echo form_close();
	
	?>
